package com.jiajia.study.mylist.stack;

/**
 * @author : zjj
 * @date : 2021/1/15 11:11
 */
public class Client {


    public static void main(String[] args) {
//        test1();
        test2();
    }

    /**
     * 测试栈的行为
     */
    public static void test1(){
        MyStack<Integer> myStack = new MyStack<Integer>();

        myStack.push(33);
        myStack.push(23);
        myStack.push(0);
        myStack.push(78);


        while (!myStack.isEmpty()){
            System.out.println(myStack.pop());
        }
    }


    public static void test2(){
        MyStack2<Integer> stack = new MyStack2<Integer>();
        stack.push(33);
        stack.push(23);
        stack.push(0);
        stack.push(78);


        while (!stack.isEmpty()){
            System.out.println(stack.pop());
        }

    }
}
